package org.example.Service;

import org.example.JavaBean.Emp;
import org.example.util.JsonResult;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther:Liu
 * @Testname:EmpService
 * @Date:2025/7/29 15:08
 */
@Service
public interface EmpService {
    JsonResult findAll();

    JsonResult findByEname(String ename);

    JsonResult find();

    JsonResult findByPage( int page, int size);

    JsonResult InsertOne (Emp emp);

    JsonResult delete(int empno);

    JsonResult InsertORDelete(int empno,Emp emp);
}
